﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <input type="checkbox" id="test"/>
    <button onclick="test()">Test</button>
    <script>
        function test() {
            document.getElementById('test').checked = true;
        }
    </script>
</body>
</html>